<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>


<html>
<head>
	<title>EmailAccount Edit Form</title>
	<link rel="stylesheet" href="../resources/css/style.css" type="text/css" media="screen, projection"/>
</head>	
<body>
<div class="container">
	<h1>
		EmailAccount Edit Form
	</h1>
	<div class="newspaper-a">	
		<form:form modelAttribute="emailAccount" action="save.html" method="post">
			<table id="hor-minimalist-a">
				<tr>
					<td><form:label	for="login" path="login">Login</form:label><br/></td>
					<td><form:input path="login" readonly="true"/></td>		
				</tr>
				<tr>
					<td><form:label	for="fullName" path="fullName"><spring:message code="label.fullname"/></form:label><br/></td>
					<td><form:input path="fullName" readonly="true"/></td>		
				</tr>
				<tr>
					<td><form:label path="domain"> <spring:message code="label.domain" /></form:label></td>
					<td><form:select path="domain">
						<form:option value="NONE" label="--- Select ---" />
						<form:options items="${emailDomainList}" />
						</form:select>
					</td>
				</tr>
				<tr>
					<td><form:label path="active"><spring:message code="label.active" /></form:label></td>
					<td><form:checkbox path="active" value="active" /></td>
				</tr>
				<tr>
					<td><form:label path="mailDir">	<spring:message code="label.maildir" />	</form:label></td>
					<td><form:input path="mailDir" /></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="<spring:message code="label.addEmailAccount"/>" /></td>
				</tr>
			</table>
		</form:form>
	</div>
	
</div>
</body>
</html>